# -*- coding: utf-8 -*-
from dotenv import load_dotenv

from utils import project_setting

load_dotenv('./.env', override=True)
import os


from test_llama_index.base import toolsInTestLlamaIndex

print('load_dotenv')
# os.environ['LANGFUSE_SECRET_KEY']=''
# os.environ['LANGFUSE_SECRET_KEY']='none'
for k, v in os.environ.items():
    if k == 'LANGFUSE_SECRET_KEY':
        print(f'----{k}={v}')
LANGFUSE_SECRET_KEY = os.getenv('LANGFUSE_SECRET_KEY', 'none')
print(f'LANGFUSE_SECRET_KEY={LANGFUSE_SECRET_KEY}')
if LANGFUSE_SECRET_KEY and not (LANGFUSE_SECRET_KEY in ['none', '']):
    print(f'有效 ')
else:
    print('无效的 配置')

for fun in toolsInTestLlamaIndex:
    try:
        _tmp = fun()
        print(_tmp)
    except Exception as e:
        pass

path = project_setting.knowledge_files_path
print(path)
